package test.administrator.example.com.mvptest1.framework.support.viewstate;

import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;

import test.administrator.example.com.mvptest1.framework.MvpView;
import test.administrator.example.com.mvptest1.framework.lce.MvpLceView;

/**
 * 备忘录模式->备忘录角色->抽象备忘录->功能：保存和恢复->Bundle
 * Created by thinkpad on 2018/8/7.
 */
public interface RestorableViewState<V extends MvpView> extends ViewState<V> {

	void onSaveInstanceState(@NonNull Bundle outState);

	RestorableViewState<V> onRestoreInstanceState(Bundle inState);

}
